/*
 * @description:
 * @version:
 * @Author: 王治飞
 * @Date: 2023-08-18 14:43:21
 * @LastEditors: 王治飞
 * @LastEditTime: 2023-08-18 16:06:22
 */
import PropTypes from 'prop-types'
import React, { memo } from 'react'
import { SecondHeaderWarp } from './style'

const SecondHeader = memo(props => {
  return (
    <SecondHeaderWarp>
      <p className="title">{props.title}</p>
      {props.subtitle && <p className="subtitle">{props.subtitle}</p>}
    </SecondHeaderWarp>
  )
})

SecondHeader.propTypes = {
  title: PropTypes.string,
  subtitle: PropTypes.string
}

export default SecondHeader
